package com.song.shopping.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName book_order
 */
@TableName(value ="book_order")
@Data
public class Order implements Serializable {
    /**
     * 订单号
     */
    @TableId(value = "orderId")
    private String orderid;

    /**
     * 订单创建时间
     */
    @TableField(value = "createTime")
    private Date createtime;

    /**
     * 订单总价格
     */
    @TableField(value = "orderPrice")
    private BigDecimal orderprice;

    /**
     * 订单图书数量
     */
    @TableField(value = "amount")
    private Integer amount;

    /**
     * 订单用户
     */
    @TableField(value = "userId")
    private Integer userid;

    /**
     * 订单是否有效
     */
    @TableField(value = "enabled")
    private Integer enabled;

    /**
     * 订单状态
     */
    @TableField(value = "state")
    private Integer state;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}